<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Construct a RecursiveTreeIterator</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="recursivetreeiterator.callhaschildren.html">« RecursiveTreeIterator::callHasChildren</a></li>
      <li style="float: right;"><a href="recursivetreeiterator.current.html">RecursiveTreeIterator::current »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="class.recursivetreeiterator.html">RecursiveTreeIterator</a></li>
    <li>Construct a RecursiveTreeIterator</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="recursivetreeiterator.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">RecursiveTreeIterator::__construct</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">RecursiveTreeIterator::__construct</span> &mdash; <span class="dc-title">Construct a RecursiveTreeIterator</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-recursivetreeiterator.construct-description">
  <h3 class="title">说明</h3>
  <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>RecursiveTreeIterator::__construct</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="class.recursiveiterator.html" class="type RecursiveIterator">RecursiveIterator</a></span>|<span class="type"><a href="class.iteratoraggregate.html" class="type IteratorAggregate">IteratorAggregate</a></span></span> <code class="parameter">$iterator</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type">int</span> <code class="parameter">$flags</code><span class="initializer"> = RecursiveTreeIterator::BYPASS_KEY</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type">int</span> <code class="parameter">$cachingIteratorFlags</code><span class="initializer"> = CachingIterator::CATCH_GET_CHILD</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type">int</span> <code class="parameter">$mode</code><span class="initializer"> = RecursiveTreeIterator::SELF_FIRST</span></span><br>)</div>

  <p class="para rdfs-comment">
   Constructs a new <span class="classname"><a href="class.recursivetreeiterator.html" class="classname">RecursiveTreeIterator</a></span> from the supplied recursive iterator.
  </p>

  <div class="warning"><strong class="warning">警告</strong><p class="simpara">本函数还未编写文档，仅有参数列表。</p></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-recursivetreeiterator.construct-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt>
<code class="parameter">iterator</code></dt>

     <dd>

      <p class="para">
       The <span class="classname"><a href="class.recursiveiterator.html" class="classname">RecursiveIterator</a></span> or <span class="classname"><a href="class.iteratoraggregate.html" class="classname">IteratorAggregate</a></span> to iterate over.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">flags</code></dt>

     <dd>

      <p class="para">
       Flags may be provided which will affect the behavior of some methods. 
       A list of the flags can found under <a href="class.recursivetreeiterator.html#recursivetreeiterator.constants" class="link">RecursiveTreeIterator predefined constants</a>.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">caching_it_flags</code></dt>

     <dd>

      <p class="para">
       Flags to affect the behavior of the <span class="classname"><a href="class.recursivecachingiterator.html" class="classname">RecursiveCachingIterator</a></span> used internally. 
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">mode</code></dt>

     <dd>

      <p class="para">
       Flags to affect the behavior of the <span class="classname"><a href="class.recursiveiteratoriterator.html" class="classname">RecursiveIteratorIterator</a></span> used internally. 
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


</div></div></div></body></html>